package com.HZNU;

import com.myRule.xiaodongRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
//import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

//eureka和ribbon整合后可以直接调用provider。不用关心端口号了
@SpringBootApplication
@EnableEurekaClient
//@RibbonClient(name = "HZNU-XIAODONG-SPRINGCLOUD-PROVIDER-DEPT",configuration = xiaodongRule.class)//微服务启动的时候加载自己的ribbon
public class ConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication.class,args);
    }
}
